package com.testDemo.hutool;

import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.NumberUtil;
import org.junit.jupiter.api.Test;

/**
 * @author: zour
 * @date: 2023/12/4
 * @description:
 */
public class NumberUtilTest {

    @Test
    public void isNumber(){
        System.out.println( NumberUtil.isNumber("description"));//false
        System.out.println( NumberUtil.isNumber("1"));//true
        System.out.println( NumberUtil.isNumber("0.1"));//true
        System.out.println( NumberUtil.isNumber(null));//false
        System.out.println( NumberUtil.isNumber("null"));//false

    }
    @Test
    public void ss(){
        System.out.println(IdUtil.objectId());
    }
}
